
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserCancelRequest struct {

	Uid string `json:"uid" form:"uid"`

	Name string `json:"name" form:"name"`

	Phone string `json:"phone" form:"phone"`

	AddTime string `json:"add_time" form:"add_time"`

	Status string `json:"status" form:"status"`

	UpTime string `json:"up_time" form:"up_time"`

	Remark string `json:"remark" form:"remark"`

}

func (r *UserCancelRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserCancelRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"name": "required",

		"phone": "required",

		"add_time": "required",

		"status": "required",

		"up_time": "required",

		"remark": "required",

	}
}

func (r *UserCancelRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserCancelRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserCancelRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
